<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/aui.css" />
    <style type="text/css">
    p {
        margin-bottom: 0.5rem;
    }
    </style>
</head>

<body>
    <form action="{:U('Home/Login/login')}" onsubmit="return validate_form(this)" method="post">
        <div class="aui-content aui-margin-b-15">
        <ul class="aui-list aui-form-list">
            <!-- <li class="aui-list-header">请填写登录信息</li> -->
            <li class="aui-list-item">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont aui-icon-mobile"></i>
                    </div>
                    <div class="aui-list-item-input">
                        <input type="text" name="mobile" placeholder="填写手机号">
                    </div>
                </div>
            </li>
            <li class="aui-list-item">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont aui-icon-lock"></i>
                    </div>
                    <div class="aui-list-item-input">
                        <input type="password" name="password" placeholder="填写密码">
                    </div>
                    <div class="aui-list-item-label-icon">
                        <i class="aui-iconfont aui-icon-display"></i>
                    </div>
                </div>
            </li>
        </ul>
    </div>
        <div class="aui-content-padded">
            <p>
                <button class="aui-btn aui-btn-primary aui-btn-block">马上登录</button>
                <!-- onclick="showDefault('success')" -->
            </p>
        </div>
    </form>
    <include file="./Template/Home/Public/footer.html" />
</body>
<script type="text/javascript" src="__PUBLIC__/Home/script/aui-toast.js"></script>
<script type="text/javascript">

var toast = new auiToast({})
function validate_form(thisform) {
    with(thisform) {
        
        if (password.value == null || password.value  == "" || mobile.value== null || mobile.value=="")
        {
            toast.fail({
                title: "请填写登录信息",
                duration: 2000
            });
            
            return false
        }else{
            toast.success({
                title: "提交成功",
                duration: 2000
            });
            return true
        }

      
    }
}
</script>

</html>

